package com.cnt.service;

import com.cnt.entity.Points;
import com.cnt.entity.PointsRules;
import com.cnt.vo.ResultVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.List;

public interface PointsService {
    ResultVo<List<Points>> getPointsList();

    ResultVo<List<PointsRules>> getPointsInfo(Integer pointsId);

    ResultVo<Void> createPoints(Points points);

    ResultVo<Void> changePoints(Points points);

    ResultVo<Void> deletePoints(Integer pointsId);

    ResultVo<Void> addPointsRule(Integer pointsId, Integer count);

    ResultVo<Void> uploadPointsRule(PointsRules pointsRules);

    ResultVo<Void> deletePointsRule(Integer pointsRuleId);

    public ResultVo<Void> replacePoints(Integer pointsId);

    ResultVo<Void> copyPoints(Integer pointsId);

    ResultVo<Void> uploadFile(MultipartFile file, Integer pointsId);

    public InputStream download(Integer pointsId);

    ResultVo<List<PointsRules>> getByIsPointsRules(String isPointsRules);

    ResultVo<List<PointsRules>> getPoints(Integer pointsId);
}
